The Dreamweaver JavaScript API > Selection functions
Selection functions
Selection functions get and set the selection in open documents. For information on getting or setting the selection in the Site window, see Site functions.